#include <stdio.h>
int main(){
	int num,m=1,i,g;
	int count=1;
	if(scanf("%d",&num)!=0){
		while(num/m>9){
			m=m*10;count++;
		}for(i=0;i<count;i++){
			g = num/m;
			num = num%m;
			m = m/10;
			printf("%d",g);printf(" ");
		}
	}else{
		printf("erro");
	}return 0;
}
